package com.zy.cat.entity.mall.resp;

import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zy.cat.common.utils.TJKUtils;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class HdkGoodsList {

	@ApiModelProperty(value = "状态码（1成功，0失败或没有数据返回）")
	private int code;

	@ApiModelProperty(value = "作为请求地址中获取下一页的参数值")
	private int min_id;

	@ApiModelProperty(value = "	返回信息说明，SUCCESS代表成功获取，失败则有具体原因")
	private String msg;

	@ApiModelProperty(value = "商品列表")
	private List<GoodsData> data;

	@Data
	public static class GoodsData {

		@ApiModelProperty(value = "活动类型： 普通活动/聚划算/淘抢购")
		private String activity_type;
		
		@ApiModelProperty(value = "返利")
		private long fcode;

		@ApiModelProperty(value = "优惠券使用条件")
		private String couponexplain;

		@ApiModelProperty(value = "双十一定金")
		private String deposit;

		@ApiModelProperty(value = "双十一定金抵扣金额")
		private String deposit_deduct;

		@ApiModelProperty(value = "折扣力度")
		private String discount;

		@ApiModelProperty(value = "	好单指数")
		private String general_index;

		@ApiModelProperty(value = "推广导购文案")
		private String guide_article;

		@ApiModelProperty(value = "	是否为品牌产品（1是）")
		private String is_brand;

		@ApiModelProperty(value = "是否为直播（1是）")
		private String is_live;

		@ApiModelProperty(value = "宝贝推荐语")
		private String itemdesc;

		@ApiModelProperty(value = "	宝贝券后价")
		private String itemendprice;

		@ApiModelProperty(value = "宝贝ID")
		private String itemid;

		@ApiModelProperty(value = "宝贝主图原始图像（由于图片原图过大影响加载速度，建议加上后缀_310x310.jpg，如https://img.alicdn.com/imgextra/i2/3412518427/TB26gs7bb7U5uJjSZFFXXaYHpXa_!!3412518427.jpg_310x310.jpg）")
		private String itempic;

		@ApiModelProperty(value = "推广长图（带http://img.haodanku.com/0_553757100845_1509175123.jpg-600进行访问）")
		private String itempic_copy;

		@ApiModelProperty(value = "在售价")
		private String itemprice;

		@ApiModelProperty(value = "宝贝月销量")
		private String itemsale;

		@ApiModelProperty(value = "宝贝近2小时跑单")
		private String itemsale2;

		@ApiModelProperty(value = "短标题")
		private String itemshorttitle;

		@ApiModelProperty(value = "标题")
		private String itemtitle;

		@JsonIgnore
		@ApiModelProperty(value = "营销计划链接")
		private String planlink;

		@JsonIgnore
		@ApiModelProperty(value = "	举报处理条件:0未举报,1为待处理,2为忽略,3为下架")
		private String report_status;

		@JsonIgnore
		@ApiModelProperty(value = "店铺掌柜名")
		private String seller_id;

		@JsonIgnore
		@ApiModelProperty(value = "	放单人名号")
		private String seller_name;

		@ApiModelProperty(value = "店铺掌柜名")
		private String sellernick;

		@ApiModelProperty(value = "店铺ID")
		private String shopid;

		@ApiModelProperty(value = "店铺名称")
		private String shopname;

		@ApiModelProperty(value = "店铺类型： 天猫店（B） 淘宝店（C）")
		private String shoptype;

		@ApiModelProperty(value = "活动开始时间")
		private String start_time;

		@ApiModelProperty(value = "	发布时间")
		private String starttime;

		@ApiModelProperty(value = "轮播主图，用英文逗号分隔开来（由于图片原图过大影响加载速度，建议加上后缀_310x310.jpg，如https://img.alicdn.com/imgextra/i2/3412518427/TB26gs7bb7U5uJjSZFFXXaYHpXa_!!3412518427.jpg_310x310.jpg）")
		private String taobao_image;

		@JsonIgnore
		@ApiModelProperty(value = "预计可得（宝贝价格 * 佣金比例 / 100）")
		private Double tkmoney;

		@JsonIgnore
		@ApiModelProperty(value = "佣金比例")
		private String tkrates;

		@JsonIgnore
		@ApiModelProperty(value = "佣金计划：隐藏/营销")
		private String tktype;

		@ApiModelProperty(value = "当天销量")
		private String todaysale;

		@ApiModelProperty(value = "店主的userid")
		private String userid;

		@ApiModelProperty(value = "商品视频ID（id大于0的为有视频单，视频拼接地址http://cloud.video.taobao.com/play/u/1/p/1/e/6/t/1/+videoid+.mp4）")
		private String videoid;

		@ApiModelProperty(value = "	商品类目：1女装，2男装，3内衣，4美妆，5配饰，6鞋品，7箱包，8儿童，9母婴，10居家，11美食，12数码，13家电，14其他，15车品，16文体，17宠物")
		private String fqcat;

		@ApiModelProperty(value = "活动结束时间")
		private String end_time;

		@ApiModelProperty(value = "是否村淘（1是）")
		private String cuntao;

		@ApiModelProperty(value = "优惠券剩余量")
		private String couponsurplus;

		@ApiModelProperty(value = "	优惠券开始时间")
		private String couponstarttime;

		@ApiModelProperty(value = "	当天优惠券领取量")
		private String couponreceive2;

		@ApiModelProperty(value = "优惠券总数量")
		private String couponnum;

		@ApiModelProperty(value = "优惠券金额")
		private String couponmoney;

		@ApiModelProperty(value = "	优惠券结束时间")
		private String couponendtime;

		public void setStart_time(String start_time) {
			if(start_time!=null&&StringUtils.isNumeric(start_time)) {
				this.start_time = TJKUtils.UnixToDateTime(null, Long.parseLong(start_time));	
			}else {
				this.start_time = start_time;
			}
		}

		public void setStarttime(String starttime) {
			if(starttime!=null&&StringUtils.isNumeric(starttime)) {
				this.starttime = TJKUtils.UnixToDateTime(null, Long.parseLong(starttime));	
			}else {
				this.starttime = starttime;
			}
		}

		public void setEnd_time(String end_time) {
			if(end_time!=null&&StringUtils.isNumeric(end_time)) {
				this.end_time = TJKUtils.UnixToDateTime(null, Long.parseLong(end_time));	
			}else {
				this.end_time = end_time;
			}
		}

		public void setCouponstarttime(String couponstarttime) {
			if(couponstarttime!=null&&StringUtils.isNumeric(couponstarttime)) {
				this.couponstarttime = TJKUtils.UnixToDateTime(null, Long.parseLong(couponstarttime));	
			}else {
				this.couponstarttime = couponstarttime;
			}
		}

		public void setCouponendtime(String couponendtime) {
			if(couponendtime!=null&&StringUtils.isNumeric(couponendtime)) {
				this.couponendtime = TJKUtils.UnixToDateTime(null, Long.parseLong(couponendtime));	
			}else {
				this.couponendtime = couponendtime;
			}
		}
	}

}
